<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond to
| and give it the Closure to call when that URI is requested.
|
*/

//$app->get('/', function () use ($app) {
//    return $app->version();
//});
/******************管理员********************/
$app->post('/api/v1/admin/login','Login\LoginController@doLogin');              //登录
$app->post('/api/v1/admin/get_admin_list','Admin\AdminController@getAdminList');            //管理员列表
$app->post('/api/v1/admin/add_admin','Admin\AdminController@addAdmin');         //添加管理员


/******************分类信息********************/
$app->post('/api/v1/cate/add_cate','Category\CateController@addCate');         //添加分类
$app->post('/api/v1/cate/update_cate','Category\CateController@updateCate');         //修改分类
$app->post('/api/v1/cate/get_cate_list','Category\CateController@getCateList');         //分类列表
$app->post('/api/v1/cate/add_keyword','Category\CateController@addKeyword');         //添加关键词
$app->post('/api/v1/cate/update_keyword','Category\CateController@updateKeyword');         //修改关键词
$app->post('/api/v1/cate/get_keyword_list','Category\CateController@getKeywordList');         //关键词列表


/******************文章********************/
$app->post('/api/v1/blog/add_blog','Blog\BlogController@addBlog');         //添加博客
$app->post('/api/v1/blog/get_blog_list','Blog\BlogController@getBlogList');         //博客列表
$app->post('/api/v1/blog/preview_blog','Blog\BlogController@previewBlog');         //博客列表
